import store from '../../../store/index'
import { MessageBox } from 'mint-ui';
import Vue from 'vue'
export default {
    /*obj 元素，attr属性*/
    getStyleAttr(obj,attr){
        if(window.getComputedStyle){
            return window.getComputedStyle(obj,null)[attr];
        }
        return obj.currentStyle[attr];
    },
    /*返回上一个地址*/
    goBack(){
        window.location.href = window.localStorage.getItem(Vue.prototype.NEXTPAGE) ? window.localStorage.getItem(Vue.prototype.NEXTPAGE) : '/home';
    },
}